package com.zz.cc.owner.app;

import android.app.ProgressDialog;

import com.zz.cc.owner.R;
import com.zz.common.app.BaseActivity;

public class OwnerBaseActivity extends BaseActivity {
	private ProgressDialog mDialog;
	
	public void showWaitDialog(String content,boolean cancelable){
		mDialog = new ProgressDialog(OwnerBaseActivity.this);
		mDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
		mDialog.setTitle("请稍候");
		mDialog.setMessage(content);
		mDialog.setIcon(R.drawable.ic_launcher);
		mDialog.setCancelable(true);
		mDialog.show();
	}
	public void dismissDialog(){
		if (mDialog!=null&&mDialog.isShowing()) {
			mDialog.dismiss();
		}
	}
}
